export const RndInt = R.curry(
  (min, max) => Math.floor( Math.random() * (max - min) ) + min
);

export const RndId = () => Math.random().toString(36).slice(2);
export const RndStr = (length, f) => Array.from({ length }, f).join('');
export const UUID = (length = 32) => Array.from({ length }, () => ((Math.random() * length) | 0).toString(length)).join('');
export const RndColor = () => `rgb(${ R.times(() => RndInt(0,256), 3).join(',') })`;
